package es.tiare;  
  
import java.io.Serializable;  

import javax.faces.bean.ManagedBean;
import javax.faces.bean.RequestScoped;
  
import org.primefaces.model.map.DefaultMapModel;  
import org.primefaces.model.map.LatLng;  
import org.primefaces.model.map.MapModel;  
import org.primefaces.model.map.Marker;  

@ManagedBean(name="mapaBean")
@RequestScoped
public class MapaBean implements Serializable {  
  
	private MapModel simpleModel;  
  
    public MapaBean() {  
        simpleModel = new DefaultMapModel();  
          
        //Shared coordinates      
        LatLng coord1 = new LatLng(40.463799, -3.701756);  
        //Basic marker  
        simpleModel.addOverlay(new Marker(coord1, "Lamparas Hervas S.L"));  
    }  
  
    public MapModel getSimpleModel() {  
        return simpleModel;  
    }  
}  